<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>

 <%
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
 %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
 		<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/updateVideo.css" />
        <link rel="stylesheet" href="<%=basePath %>/css/list.css">
		<link href="<%=basePath %>/css/H-ui.min.css" rel="stylesheet" type="text/css" />
		<link href="<%=basePath %>/css/formsCSS.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/simditor.css" />
		<script src="<%=basePath%>/lib/My97DatePicker/WdatePicker.js"></script>
		<script src="<%=basePath %>/js/jquery.min.js"></script>
		<script src="<%=basePath %>/js/formsJS.js"></script>
		
		<script type="text/javascript" src="<%=basePath %>/js/module.js"></script>
		<script type="text/javascript" src="<%=basePath %>/js/hotkeys.js"></script>
		<script type="text/javascript" src="<%=basePath %>/js/uploader.js"></script>
		<script type="text/javascript" src="<%=basePath %>/js/simditor.js"></script>
		<script type="text/javascript" src="<%=basePath %>js/H-ui.js"></script>

<script type="text/javascript">

function checkForm(f){

	if(f.title.value.replace(/\s/g,'') == ''){
		alert("消息标题不能为空");
		return false;
	}
	if(f.content.value.replace(/\s/g,'') == ''){
		alert("消息内容不能为空");
		return false;
	}
	return true;
}
</script>
</head>
<body>
<div class="connect_wrap">
  		<h3 style= "text-align: center;">消息推送</h3>
	<div class="row cl" style="max-width:88%;margin-left:8%;">
	<div class="labelText"></div>
 <form action="<%=basePath%>/push/send" method="post" onsubmit="return checkForm(this)"
	enctype="multipart/form-data">
	<div class="col-sm-4"></div>
		<div class="col-sm-4">
				<div class="boxs">
			 	<input type="text" class="inputBox" placeholder="消息标题" name="title" >
			 	<input type="text" class="inputBox" placeholder="消息内容" name="content" >
					<br /><br />
					<span>推送端<br />
				<select id="status" name="type" class="selectBox"  >
		  			<option value="1">ios</option>
		  			<option value="2"}>android</option>
		  			<option value="3"}>all</option>
				</select></span>
					<br /><br />
					<span>消息类别<br />
				<select name="msgtype" class="selectBox"  >
		  			<option value="1">课程</option>
		  			<option value="2">章节</option>
		  			<option value="3">课程包</option>
		  			<option value="4">活动</option>
				</select></span>
					<input type="text" class="inputBox" placeholder="携带参数" name="param" >
			<br /><br />
			<input type="submit" value="确定" class="true" />
			<input type="button"  class="false" value="取消" onclick="window.history.go(-1)">
		</div>
			</div>
		</form> 
		</div>
</div>

</body>
</html>